//package com.hnxxxy.sysmgr;
//
//import com.aliyuncs.CommonRequest;
//import com.aliyuncs.CommonResponse;
//import com.aliyuncs.DefaultAcsClient;
//import com.aliyuncs.IAcsClient;
//import com.aliyuncs.exceptions.ClientException;
//import com.aliyuncs.exceptions.ServerException;
//import com.aliyuncs.http.MethodType;
//import com.aliyuncs.profile.DefaultProfile;
//import com.hnxxxy.rewardmgr.bean.NumberConfig;
//import lombok.SneakyThrows;
//
//import java.util.concurrent.ExecutorService;
//import java.util.concurrent.Executors;
//
///**
// * @description:
// * @projectName:reward_pro
// * @see:com.hnxxxy.sysmgr
// * @author:张屹东
// * @createTime:2020/12/31 13:20
// */
//public class Test {
//    static ExecutorService executorService = Executors.newFixedThreadPool(10);
//
//    public static void toStartSendMessage(NumberConfig id) {
//        executorService.submit(new Runnable() {
//            @Override
//            public void run() {
//                System.out.println(executorService.toString()+": "+id);
//            }
//        });
//    }
//
//    public static void sendMassage(String mobile){
//        DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", "LTAI4G7gQFKkyYHTdtEf7VJj", "sjZBR8q30DbOlhiowjSPuPWuKlc0PB");
//        IAcsClient client = new DefaultAcsClient(profile);
//
//        CommonRequest request = new CommonRequest();
//        request.setSysMethod(MethodType.POST);
//        request.setSysDomain("dysmsapi.aliyuncs.com");
//        request.setSysVersion("2017-05-25");
//        request.setSysAction("SendSms");
//        request.putQueryParameter("RegionId", "cn-hangzhou");
//        request.putQueryParameter("PhoneNumbers", mobile);
//        request.putQueryParameter("SignName", "政青春");
//        request.putQueryParameter("TemplateCode", "SMS_180755829");
//        request.putQueryParameter("TemplateParam", "{\"code\":\"123456\"}");
//
//        try {
//            CommonResponse response = client.getCommonResponse(request);
//            System.out.println(response.getData());
//        } catch (ServerException e) {
//            e.printStackTrace();
//        } catch (ClientException e) {
//            e.printStackTrace();
//        }
//    }
//
//    public static void main(String[] args) {
//        sendMassage("15226392261");
//    }
//}
